home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / plaf / basic / BasicInternalFrameTitlePane$RestoreAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.0 KB  |  31 lines

  1. package javax.swing.plaf.basic;
  2.  
  3. import java.awt.event.ActionEvent;
  4. import java.beans.PropertyVetoException;
  5. import javax.swing.AbstractAction;
  6.  
  7. public class BasicInternalFrameTitlePane$RestoreAction extends AbstractAction {
  8.    // $FF: synthetic field
  9.    private final BasicInternalFrameTitlePane this$0;
  10.  
  11.    public BasicInternalFrameTitlePane$RestoreAction(BasicInternalFrameTitlePane var1) {
  12.       super("Restore");
  13.       this.this$0 = var1;
  14.    }
  15.  
  16.    public void actionPerformed(ActionEvent var1) {
  17.       if (this.this$0.frame.isMaximizable() && this.this$0.frame.isMaximum()) {
  18.          try {
  19.             this.this$0.frame.setMaximum(false);
  20.          } catch (PropertyVetoException var3) {
  21.          }
  22.       } else if (this.this$0.frame.isIconifiable() && this.this$0.frame.isIcon()) {
  23.          try {
  24.             this.this$0.frame.setIcon(false);
  25.          } catch (PropertyVetoException var2) {
  26.          }
  27.       }
  28.  
  29.    }
  30. }
  31.